﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.SurveyQuestion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AddMChoiceQuestion
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>AddMChoiceQuestion</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>SurveyQuestion</legend>

   
        <div class="editor-label">
            <%: Html.LabelFor(model => model.QuestionText) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.QuestionText, new { @class = "longTextField" })%>
            <%: Html.ValidationMessageFor(model => model.QuestionText) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.OptionA) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.OptionA) %>
            <%: Html.ValidationMessageFor(model => model.OptionA) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.OptionB) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.OptionB) %>
            <%: Html.ValidationMessageFor(model => model.OptionB) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.OptionC) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.OptionC) %>
            <%: Html.ValidationMessageFor(model => model.OptionC) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.OptionD) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.OptionD) %>
            <%: Html.ValidationMessageFor(model => model.OptionD) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.OptionE) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.OptionE) %>
            <%: Html.ValidationMessageFor(model => model.OptionE) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.IsMultiselect) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.IsMultiselect) %>
            <%: Html.ValidationMessageFor(model => model.IsMultiselect) %>
        </div>

        <p>
            <%: Html.ActionLink("Cancel", "Index") %>
            <input type="submit" name="qtype" value="Save and add another essay question" />
            <input type="submit" name="qtype" value="Save and add another multiple choice question" />
        </p>
    </fieldset>
<% } %>


</asp:Content>
